home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 9675 / 9675.xpi / chrome / content / simpletimer-options.xul < prev    next >
Extensible Markup Language  |  2009-11-30  |  16KB  |  419 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/"
  4.                  type="text/css"?>
  5.  
  6. <?xml-stylesheet href="chrome://simpletimer/content/simpletimer.css"
  7.                  type="text/css"?>
  8.  
  9. <!DOCTYPE prefwindow SYSTEM "chrome://simpletimer/locale/simpletimer.dtd">
  10.  
  11. <prefwindow id="simtim-dlgOptionsSimple"
  12.             title="&prefwindow.name;"
  13.             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.             buttons="accept, cancel"
  15.             onload="SimpleTimerOptions.onLoadOptions();"
  16.             ondialogaccept="return SimpleTimerOptions.onOKOptions();"
  17.             persist="screenX screenY">
  18.  
  19. <prefpane id="simtim-paneNotificationsSimple"
  20.           image="chrome://simpletimer/content/images/clock32.png"
  21.           label="&pref.pane.notifications;">
  22.  
  23. <preferences>
  24.     <preference id="simtim-prefPopupNotify"
  25.                 name="extensions.simpletimer@grbradt.org.popupNotify"
  26.                 type="bool" />
  27.     <preference id="simtim-prefAudioNotify"
  28.                 name="extensions.simpletimer@grbradt.org.audioNotify"
  29.                 type="bool" />
  30.     <preference id="simtim-prefDialogNotify"
  31.                 name="extensions.simpletimer@grbradt.org.dialogNotify"
  32.                 type="bool" />
  33.     <preference id="simtim-prefRepeatAudio"
  34.                 name="extensions.simpletimer@grbradt.org.repeatAudio"
  35.                 type="int" />
  36.     <preference id="simtim-prefRepeatMax"
  37.                 name="extensions.simpletimer@grbradt.org.repeatMax"
  38.                 type="int" />
  39.     <preference id="simtim-prefAudioFile"
  40.                 name="extensions.simpletimer@grbradt.org.audioFile"
  41.                 type="int" />
  42. </preferences>
  43.  
  44. <groupbox>
  45.     <caption label="&pref.grpbox.countdown;"
  46.              class="simtim-prefGroupboxLabel" />
  47.     <vbox>
  48.         <checkbox id="simtim-cboxAudioNotify"
  49.                   preference="simtim-prefAudioNotify"
  50.                   label="&pref.cbox.audio;"
  51.                   oncommand="SimpleTimerOptions.onAudioNotifyClick();" />
  52.         <checkbox id="simtim-cboxPopupNotify"
  53.                   preference="simtim-prefPopupNotify"
  54.                   label="&pref.cbox.popup;" />
  55.         <checkbox id="simtim-cboxDialogNotify"
  56.                   preference="simtim-prefDialogNotify"
  57.                   label="&pref.cbox.dialog;"
  58.                   oncommand="SimpleTimerOptions.onDialogNotifyClick();" />
  59.         <hbox align="center">
  60.             <spacer width="20" />
  61.             <label value="&pref.label.repeat.audio;"
  62.                    control="simtim-tboxRepeatAudio" />
  63.             <textbox id="simtim-tboxRepeatAudio"
  64.                      preference="simtim-prefRepeatAudio"
  65.                      class="simtim-borderColors"
  66.                      disabled="true"
  67.                      type="number"
  68.                      value="1"
  69.                      wraparound="true"
  70.                      size="2"
  71.                      width="65"
  72.                      min="-59"
  73.                      max="60"
  74.                      tooltiptext="&pref.repeat.audio.tip;"/>
  75.             <label value="&pref.label.minutes.max;" />
  76.             <textbox id="simtim-tboxRepeatMax"
  77.                      preference="simtim-prefRepeatMax"
  78.                      class="simtim-borderColors"
  79.                      disabled="true"
  80.                      type="number"
  81.                      value="0"
  82.                      wraparound="true"
  83.                      size="2"
  84.                      width="65"
  85.                      min="0"
  86.                      max="99" />
  87.             <label value="&pref.label.repeat.max;"
  88.                    control="simtim-tboxRepeatMax" />
  89.         </hbox>
  90.     </vbox>
  91. </groupbox>
  92.  
  93. <groupbox id="simtim-gboxAudioFiles">
  94.     <caption label="&pref.grpbox.audiofiles;"
  95.              class="simtim-prefGroupboxLabel" />
  96.     <hbox>
  97.         <radiogroup id="simtim-radgrpAudioFile"
  98.                     preference="simtim-prefAudioFile"
  99.                     oncommand="SimpleTimerOptions.onAudioFileRadioClick();">
  100.             <radio id="simtim-radAlarmClock"
  101.                    label="&pref.rad.alarmclock;"
  102.                    selected="true"
  103.                    value="0" />
  104.             <radio id="simtim-radFanfare"
  105.                    label="&pref.rad.fanfare;"
  106.                    value="1" />
  107.             <radio id="simtim-radCustom"
  108.                    label="&pref.rad.custom;"
  109.                    value="2" />
  110.         </radiogroup>
  111.         <vbox>
  112.             <image id="simtim-imgAlarmClock"
  113.                    class="simtim-prefAudioListen"
  114.                    tooltiptext="&pref.audio.img.tip;"
  115.                    onclick="SimpleTimer.playSound(0);" />
  116.             <spacer flex="1" />
  117.             <image id="simtim-imgFanfare"
  118.                    class="simtim-prefAudioListen"
  119.                    tooltiptext="&pref.audio.img.tip;"
  120.                    onclick="SimpleTimer.playSound(1);" />
  121.             <spacer flex="1" />
  122.             <image id="simtim-imgCustom"
  123.                    class="simtim-prefAudioListen"
  124.                    tooltiptext="&pref.audio.img.tip;"
  125.                    onclick="SimpleTimer.playSound(2);" />
  126.         </vbox>
  127.     </hbox>
  128.     <hbox align="center">
  129.         <spacer width="30" />
  130.         <textbox id="simtim-userWavPath"
  131.                  class="simtim-borderColors"
  132.                  readonly="true"
  133.                  flex="1" />
  134.         <button id="simtim-btnBrowseWav"
  135.                 label="&pref.btn.browse;"
  136.                 disabled="true"
  137.                 tooltiptext="&pref.browse.button.tip;"
  138.                 oncommand="SimpleTimerOptions.onBrowseClick();" />
  139.     </hbox>
  140. </groupbox>
  141.  
  142. </prefpane>
  143.  
  144. <prefpane id="simtim-paneNotificationsPositioning"
  145.           image="chrome://simpletimer/content/images/positioning.png"
  146.           label="&pref.pane.positioning;">
  147.  
  148. <preferences>
  149.     <preference id="simtim-prefDisplayIn"
  150.                 name="extensions.simpletimer@grbradt.org.displayIn"
  151.                 type="int" />
  152. </preferences>
  153.  
  154. <groupbox>
  155.     <caption label="&pref.grpbox.display.in;"
  156.              class="simtim-prefGroupboxLabel" />
  157.     <radiogroup id="simtim-radgrpDisplayIn"
  158.                 orient="horizontal"
  159.                 preference="simtim-prefDisplayIn">
  160.         <radio id="simtim-radStatusbar"
  161.                label="&pref.rad.statusbar;"
  162.                selected="true"
  163.                value="0" />
  164.         <radio id="simtim-radToolbar"
  165.                label="&pref.rad.toolbar;"
  166.                value="1" />
  167.         <radio id="simtim-radBothbars"
  168.                label="&pref.rad.bothbars;"
  169.                value="2" />
  170.     </radiogroup>
  171. </groupbox>
  172.  
  173. </prefpane>
  174.  
  175. <prefpane id="simtim-paneMiscSimple"
  176.           image="chrome://simpletimer/content/images/misc.png"
  177.           label="&pref.pane.misc;">
  178.  
  179. <preferences>
  180.     <preference id="simtim-prefOnStartup"
  181.                 name="extensions.simpletimer@grbradt.org.onStartup"
  182.                 type="int" />
  183.     <preference id="simtim-prefEventLogging"
  184.                 name="extensions.simpletimer@grbradt.org.eventLogging"
  185.                 type="bool" />
  186.     <preference id="simtim-prefDeleteLogEntries"
  187.                 name="extensions.simpletimer@grbradt.org.deleteLogEntries"
  188.                 type="int" />
  189.     <preference id="simtim-prefLeftClick"
  190.                 name="extensions.simpletimer@grbradt.org.leftClick"
  191.                 type="int" />
  192.     <preference id="simtim-prefTooltip"
  193.                 name="extensions.simpletimer@grbradt.org.tooltip"
  194.                 type="int" />
  195.     <preference id="simtim-prefDisablePauseResume"
  196.                 name="extensions.simpletimer@grbradt.org.disablePauseResume"
  197.                 type="bool" />
  198.     <preference id="simtim-prefClockType"
  199.                 name="extensions.simpletimer@grbradt.org.clockType"
  200.                 type="int" />
  201.     <preference id="simtim-prefShowSecs"
  202.                 name="extensions.simpletimer@grbradt.org.showSecs"
  203.                 type="bool" />
  204.     <preference id="simtim-prefClock24Hr"
  205.                 name="extensions.simpletimer@grbradt.org.clock24Hr"
  206.                 type="bool" />
  207.     <preference id="simtim-prefDateFormat"
  208.                 name="extensions.simpletimer@grbradt.org.dateFormat"
  209.                 type="int" />
  210. </preferences>
  211.  
  212. <groupbox id="simtim-gboxOnStartup">
  213.     <caption label="&pref.grpbox.onStartup;"
  214.              class="simtim-prefGroupboxLabel" />
  215.     <radiogroup id="simtim-radgrpOnStartup"
  216.                 orient="horizontal"
  217.                 preference="simtim-prefOnStartup">
  218.         <radio id="simtim-radIcon"
  219.                label="&pref.rad.icon;"
  220.                selected="true"
  221.                value="0" />
  222.         <radio id="simtim-radClock"
  223.                label="&pref.rad.clock;"
  224.                value="1" />
  225.         <radio id="simtim-radCountup"
  226.                label="&pref.rad.countup;"
  227.                value="2" />
  228.     </radiogroup>
  229. </groupbox>
  230.  
  231. <groupbox id="simtim-gboxEventLogging">
  232.     <caption label="&pref.grpbox.eventLogging;"
  233.              class="simtim-prefGroupboxLabel" />
  234.     <checkbox id="simtim-cboxEventLogging"
  235.               preference="simtim-prefEventLogging"
  236.               label="&pref.cbox.event.logging;"
  237.               oncommand="SimpleTimerOptions.onEventLoggingClick();" />
  238.     <hbox align="center">
  239.         <spacer width="30" />
  240.         <textbox id="simtim-eventLogPath"
  241.                  class="simtim-borderColors"
  242.                  readonly="true"
  243.                  flex="1" />
  244.         <button id="simtim-btnBrowseLogPath"
  245.                 label="&pref.btn.browse;"
  246.                 tooltiptext="&pref.browse.log.tip;"
  247.                 oncommand="SimpleTimerOptions.onBrowseLogClick();" />
  248.     </hbox>
  249.     <hbox align="center"
  250.           flex="1">
  251.         <spacer width="30" />
  252.         <label value="&pref.label.delete.log.entries;"
  253.                control="simtim-tboxDeleteLogEntries" />
  254.         <textbox id="simtim-tboxDeleteLogEntries"
  255.                  preference="simtim-prefDeleteLogEntries"
  256.                  class="simtim-borderColors"
  257.                  type="number"
  258.                  value="0"
  259.                  wraparound="true"
  260.                  size="2"
  261.                  width="65"
  262.                  min="0"
  263.                  max="90"
  264.                  tooltiptext="&pref.delete.log.entries.tip;" />
  265.         <label value="&pref.label.days;" />
  266.         <spacer flex="1" />
  267.         <button id="simtim-btnResetDefault"
  268.                 pack="end"
  269.                 label="&pref.btn.reset.default;"
  270.                 tooltiptext="&pref.reset.default.tip;"
  271.                 oncommand="SimpleTimerOptions.onResetDefaultClick();" />
  272.     </hbox>
  273. </groupbox>
  274.  
  275. <groupbox id="simtim-gboxLeftClick">
  276.     <caption label="&pref.grpbox.leftClick;"
  277.              class="simtim-prefGroupboxLabel" />
  278.     <radiogroup id="simtim-radgrpLeftClick"
  279.                 preference="simtim-prefLeftClick">
  280.         <hbox>
  281.             <radio id="simtim-radNone"
  282.                    label="&pref.rad.tooltip.none;"
  283.                    value="0" />
  284.             <radio id="simtim-radLeftClickClock"
  285.                    label="&pref.rad.clock;"
  286.                    selected="true"
  287.                    value="1" />
  288.             <radio id="simtim-radLeftClickCountUp"
  289.                    label="&pref.rad.countup;"
  290.                    value="2" />
  291.         </hbox>
  292.         <hbox>
  293.             <radio id="simtim-radLeftClickCountDown"
  294.                    label="&pref.rad.countdown;"
  295.                    value="3" />
  296.             <radio id="simtim-radLeftClickNotifyMe"
  297.                    label="&pref.rad.notifyme;"
  298.                    value="4" />
  299.         </hbox>
  300.     </radiogroup>
  301. </groupbox>
  302.  
  303. <groupbox id="simtim-gboxPauseResume">
  304.     <caption label="&pref.grpbox.pauseResume;"
  305.              class="simtim-prefGroupboxLabel" />
  306.     <checkbox id="simtim-cboxPauseResume"
  307.               preference="simtim-prefDisablePauseResume"
  308.               label="&pref.cbox.disable.pauseResume;"
  309.               tooltiptext="&pref.disable.pauseResume.tip;" />
  310. </groupbox>
  311.  
  312. <groupbox id="simtim-gboxTooltip">
  313.     <caption label="&pref.grpbox.tooltip;"
  314.              class="simtim-prefGroupboxLabel" />
  315.     <radiogroup id="simtim-radgrpTooltip"
  316.                 preference="simtim-prefTooltip">
  317.         <hbox>
  318.             <radio id="simtim-radTooltipNone"
  319.                    label="&pref.rad.tooltip.none;"
  320.                    value="0" />
  321.             <radio id="simtim-radTooltipDate"
  322.                    label="&pref.rad.tooltip.date;"
  323.                    value="1" />
  324.             <radio id="simtim-radTooltipFull"
  325.                    label="&pref.rad.tooltip.full;"
  326.                    selected="true"
  327.                    value="2" />
  328.         </hbox>
  329.         <hbox>
  330.             <radio id="simtim-radTooltipDateClock"
  331.                        label="&pref.rad.tooltip.date.clock;"
  332.                        value="3" />
  333.             <radio id="simtim-radTooltipTimers"
  334.                        label="&pref.rad.tooltip.timers;"
  335.                        value="4" />
  336.          </hbox>
  337.     </radiogroup>
  338. </groupbox>
  339.  
  340. <groupbox id="simtim-gboxClock24Hr">
  341.     <caption label="&pref.grpbox.clock24Hr;"
  342.              class="simtim-prefGroupboxLabel" />
  343.     <vbox>
  344.         <hbox align="center">
  345.             <radiogroup id="simtim-radgrpClockType"
  346.                         orient="horizontal"
  347.                         preference="simtim-prefClockType"
  348.                         oncommand="SimpleTimerOptions.onClockTypeClick();">
  349.                 <radio id="simtim-radClockStandard"
  350.                        label="&pref.rad.clock.standard;"
  351.                        selected="true"
  352.                        value="0" />
  353.                 <radio id="simtim-radClockEpoch"
  354.                        label="&pref.rad.clock.epoch;"
  355.                        tooltiptext="&pref.rad.clock.epoch.tip;"
  356.                        value="1" />
  357.             </radiogroup>
  358.             <separator orient="vertical" />
  359.             <label value="&pref.label.date.format;" />
  360.             <menulist id="simtim-mlistDateFormat"
  361.                       preference="simtim-prefDateFormat"
  362.                       readonly="true"
  363.                       tooltiptext="&pref.date.format.tip;">
  364.                 <menupopup id="simtim-mpopDateFormat">
  365.                     <menuitem id="simtim-mitemDate0"
  366.                               label="&pref.mitem.nodate;"
  367.                               value="0" />
  368.                     <menuitem id="simtim-mitemDate1"
  369.                               value="1" />
  370.                     <menuitem id="simtim-mitemDate2"
  371.                               value="2" />
  372.                     <menuitem id="simtim-mitemDate3"
  373.                               value="3" />
  374.                     <menuitem id="simtim-mitemDate4"
  375.                               value="4" />
  376.                     <menuitem id="simtim-mitemDate5"
  377.                               value="5" />
  378.                     <menuitem id="simtim-mitemDate6"
  379.                               value="6" />
  380.                     <menuitem id="simtim-mitemDate7"
  381.                               value="7" />
  382.                     <menuitem id="simtim-mitemDate8"
  383.                               value="8" />
  384.                     <menuitem id="simtim-mitemDate9"
  385.                               value="9" />
  386.                 </menupopup>
  387.             </menulist>
  388.         </hbox>
  389.         <checkbox id="simtim-cboxShowSecs"
  390.                   preference="simtim-prefShowSecs"
  391.                   label="&pref.cbox.showSecs;" />
  392.         <checkbox id="simtim-cboxClock24Hr"
  393.                   preference="simtim-prefClock24Hr"
  394.                   label="&pref.cbox.clock24Hr;"
  395.                   hidden="true" />
  396.     </vbox>
  397. </groupbox>
  398.  
  399. </prefpane>
  400.  
  401. <script type="application/x-javascript"
  402.         src="chrome://simpletimer/content/simpletimer.js" />
  403.  
  404. <script type="application/x-javascript"
  405.         src="chrome://simpletimer/content/simpletimer-fileIO.js" />
  406.  
  407. <script type="application/x-javascript"
  408.         src="chrome://simpletimer/content/simpletimer-eventLog.js" />
  409.  
  410. <script type="application/x-javascript"
  411.         src="chrome://simpletimer/content/simpletimer-options.js" />
  412.  
  413. <stringbundleset id="stringbundleset">
  414.     <stringbundle id="simtim-strings"
  415.                   src="chrome://simpletimer/locale/simpletimer.properties" />
  416. </stringbundleset>
  417.  
  418. </prefwindow>
  419.